<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script src="js/comm.js" type="text/javascript"></script>
<script src="js/jquery.tabs.js" type="text/javascript"></script>
<title>住院明细</title>
<script>
$(function () {
	$.tabs({
		selector:"#tb1",
		event:'click',
		selectedClass:'cur'
	});
});
</script>
</head>

<body style="background:#fff;">
	<div class="msgBox">
    	<h2>住院明细</h2>
        <div class="bc" style=" width:460px;">
        	<div class="mingxi">
            	<ul>
            		<li>姓名：<?php echo $patient['TRUE_NAME']?></li>
                    <li>性别：<?php echo $patient['SEX']?></li>
                    <li>住院时年龄：<?php echo ATools::getZhuyuanAge($zhuyuan['ZY_AGE'])?></li>
                	<li>住院号：<?php echo $zhuyuan['ZY_NO']?></li>
                    <li>住院序次：<?php echo $zhuyuan['ZY_TIMES']?></li>
                    <li>已出院：<span class="red"><?php echo ATools::getAge($zhuyuan['CY_DATE'], '年')?></span></li>
                    <li>入院时间：<?php echo $zhuyuan['RY_DATE']?></li>
                    <li>出院时间：<?php echo $zhuyuan['CY_DATE']?></li>
                    <li>住院天数：<?php echo $zhuyuan['ZY_DAYS']?></li>
                    <li>科室：<?php echo $zhuyuan['CY_DEP']?></li>
                    <li>管床医生：<?php echo $zhuyuan['ZYDOC']?></li>
                    <li>责任护士：<?php echo $zhuyuan['ZKNURSE']?></li>
                    <div class="clear"></div>
                </ul>
            </div>
            <div class="tab">
            	<dl class="tabs" id="tb1">
                    <dt>
                        <a class="cur">出院诊断</a>
                        <a>手术信息</a>
                    </dt>
                    <div class="clear"></div>
                    <dd>
                        <?php echo $zhuyuan['RY_ZD']?>
                    </dd>
                    <dd>
                    <?php if ($operation) {?>
                            	<table class="qi_table" width="0" border="0" cellpadding="0" cellspacing="1">
                                  <tr><th >手术名称</th><th>手术时间</th><th>愈合</th><th>医生</th></tr>
                                  <?php foreach ($operation as $oper) {?>
                                  <tr><td width="30%"><?php echo $oper['OP_NAME']?></td><td><?php echo $oper['OP_DATE']?></td><td><?php echo $oper['YUHE']?></td><td><?php echo $oper['DOC_NAME']?></td></tr>
                                  <?php }?>
                                 </table>
                                <?php } else {?>
                                	没有手术记录
                                <?php }?>
                    </dd>
                </dl>
            </div>
            <input onclick="javascript:JYCsm.closeWindow();" class="btn_gray" name="" type="button" value="关 闭" />
        </div>	
    </div>
</body>
</html>